﻿using LinkDownloader.Core;
using LinkDownloader.Forms;

namespace LinkDownloader.DownloadManger
{
    internal class MainDownloader : Downloader
    {

        private frmSplash splash = null;
        public frmSplash Splash
        {
            get { return this.splash; }
        }

        private volatile frmMain form = null;
        public frmMain Form
        {
            get { return this.form; }
            set { this.form = value; }
        }

        public MainDownloader()
        {
            
            Utils.Initialize();
            GlobalSettings.InitializeSettings();

            this.splash = new frmSplash(this);

        }

        protected override DownloadJob GetNewDownloadJob(int id)
        {
            //return new DownloadJob(id);
            return new SingleDownload(this, id);
        }

    }
}
